using Rhino.Mocks.Constraints;

namespace MobileBroadbandLoggingMonitor.FastTests
{
    public class GenericConstraint<T> : AbstractConstraint where T: class
    {
        T _theObject;

        public override bool Eval(object obj)
        {
            _theObject = obj as T;
            return true;
        }

        public override string Message
        {
            get { return string.Empty; }
        }

        public T GetParameter()
        {
            return _theObject;
        }
    }
}